package org.seckill.dao;

import org.apache.ibatis.annotations.Param;
import org.seckill.entity.SuccessKilled;

/**
 * Created by chenhui479 on 16/11/20.
 */
public interface SuccessKillDao {

    /**
     * 插入购买明细，可以过滤重复
     * @param seckillId
     * @param userPhone
     * @return
     */

    int inserSuccessKilled(@Param("seckillId") long seckillId, @Param("userPhone") long userPhone);

    /**
     * v 根据ID查询SuccessKilled并携带秒杀产品实体
     * @param seckillId
     * @return
     */
    SuccessKilled queryByIDwithSeckillId(@Param("seckillId") long seckillId, @Param("userPhone") long userPhone);

}
